<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="menu" content="col1Menu" />
<meta name="nav" content="2" />
<meta name="acc" content="report" />
<title>事故处理</title>
<script>
		$(document).ready(function() {
		 $("#happendate").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		});
</script>
</head>
<body>
<div id="heading" class="accidentreport"><h6>事故处理</h6></div>
<form id="mainForm" action="accidentreport.action" method="get" class="yform" >
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<div id="filter">
<ul>
<li>事故处理时间 ：<input type="text"  id="happendate" name="filter_GED_dealdate" value="${param['filter_GED_dealdate']}" /></li>
<li>事故归类:<pt:code name="filter_EQS_type" category="3013" prompt="全部" default="${param['filter_EQS_type']}"></pt:code></li>
</ul>
<div class="type-button"><input onclick="search()" type="button" value="查询" align="right" class='search'/></div>
</div>
<div id="content">
<table id="contentTable">
	<tr>
		<th><a id="buyDate" href="javascript:sort('buyDate','asc')">序号</a></th>
		<th><a id="licenseplateNumbers" href="javascript:sort('projname','asc')">项目</a></th>
		<th><a id="buyDate" href="javascript:sort('type','asc')">事故归类</a></th>
		<th><a id="brand" href="javascript:sort('dealdate','asc')">事故处理时间</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="accidentreport" varStatus="status">
		<tr>
			<td>${page.first+status.index }</td>
			<td>${accidentreport.projname}</td>
			<td><pt:code category="3013"  code="${accidentreport.type}"></pt:code></td>
			<td><fmt:formatDate value="${accidentreport.dealdate}" pattern="yyyy-MM-dd"/></td>
			<td><a href="${ctx}/quality/accidentreport!view.action?id=${accidentreport.id}">编辑</a></td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
</form>
</body>
